package com.atung.parking.config.auth;

import cn.hutool.crypto.SecureUtil;
import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * @author Administrator
 */
@Component
public class PwdCreateUtil {
    public static String createPwd(String pwd,String salt) {
        String encryptPwd = SecureUtil.md5(salt + pwd);
        return encryptPwd;
    }
    public static String createSalt() {
        String salt = UUID.randomUUID().toString().substring(0,6);
        return salt;
    }
}
